package com.xs.project.mapper;

import com.xs.project.pojo.vo.ExamListReq;
import com.xs.project.pojo.vo.resp.ExamTitleStu;
import com.xs.project.pojo.vo.resp.XsExamResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ExamManagerMapper {

    List<XsExamResp> selectExamList(ExamListReq request);

    void updateExamList(XsExamResp request);

    void insertExamList(XsExamResp request);

    Integer selectById(Integer id);

    void delExamList(XsExamResp request);

    List<ExamTitleStu> selectExamTitleStu(@Param("teacherId") String teacherId,@Param("courseId") String courseId);

    List<String> selectCourseId(String teacherId);

    int selectCourseById(String courseId);

    void saveExamTitleStu(@Param("id") String id, @Param("point") String point);

    int selectUnHandle(String userId);

    Integer seletPoint(String userId);

    void updatePoint(@Param("totalPoint") Integer totalPoint,@Param("userId") String userId);

    XsExamResp selectCourseByExamId(String examId);

    List<String> selectEmails(String examId);
}
